module.exports = app => {
  const mongoose = app.mongoose;
  const Schema = mongoose.Schema;
  const RoleSchema = new Schema({
    id: {
      type: String,
      require: true // 必填项
    },
    title: {
      type: String,
      require: true
    },
    label: {
      type: String,
      require: true
    },
    author: {
      type: String
    },
  });
  return mongoose.model("Article", RoleSchema, "article");
};
